package com.example.one.exception;

public class CustomizeException extends  RuntimeException {
    private String message;
    private Integer code;


    public CustomizeException(InCustomizeErrorCode errorCode) {
        this.code=errorCode.getCode();
        this.message = errorCode.getMessage();
    }

    @Override
    public String getMessage() {
        return message;
    }
    public Integer getCode(){return code;}

}
